DensityPlot
Wolfram Kernel
Execution environment
DensityPlot[f, {x, xmin, xmax}, {y, ymin, ymax}]
makes a density plot of f
as a function of x
and y
warning
Only a flat-shading is supported for now
tip
For better performance use this option
PerformanceGoal->"Speed"
DensityPlot[x y, {x,0,1}, {y,0,1}]
Options
ColorFunction
CoolColor[ z_ ] := RGBColor[z, 1 - z, 1];
DensityPlot[Sin[x y], {x, -1, 1}, {y, -1, 1},
ColorFunction -> CoolColor]
or using predefined
DensityPlot[Sin[x] Sin[y], {x, -2, 2}, {y, -2, 2},
ColorFunction -> ColorData["SolarColors"]]